// File:    User.cs
// Author:  Liqun
// Created: 2013年6月25日 11:22:26
// Purpose: Definition of Class User

using System;
using System.ComponentModel.DataAnnotations;

namespace DataAccess.Models
{
	public sealed class User
	{
		[Key]
		public int UserID
		{
			get;
			set;
		}
		[Required(ErrorMessage = "用户名不能为空")]
		public string UserName
		{
			get;
			set;
		}
		public string UserDescription
		{
			get;
			set;
		}
		public DateTime? LastLoginTime
		{
			get;
			set;
		}
		public string LastLoginIP
		{
			get;
			set;
		}
		public DateTime? AddTime
		{
			get;
			set;
		}
		public DateTime? ModifyTime
		{
			get;
			set;
		}
		public string Password
		{
			get;
			set;
		}
		public string RoleName
		{
			get;
			set;
		}
	}
}